package com.nanyang.tms.domain.dataimport;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import cn.hutool.json.JSONUtil;
import lombok.Data;
@Document
@Data
@CompoundIndex(def="{'companyCode':1},{'serviceType':1}")
public class DataImportDO implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
    private String id;
	@Indexed(unique=true)
	private String fileCode;
	private String fileName;
	private String fileUrl;
	private String serviceType;
	private Integer totalNum;
	private Integer successNum;
	private Integer failNum;
	private String result;
	private Integer status;
	private String companyCode;
	private String pin;
	private Date gmtCreate;
	private List<DataImportLineDO> successLines;
	private List<DataImportLineDO> failLines;
}
